//
//  YMHomeCell.m
//  LazyCat
//
//  Created by jike on 16/6/6.
//  Copyright © 2016年 zhanshu. All rights reserved.
//

#import "YMHomeCell.h"

@implementation YMHomeCell
- (IBAction)cellButtonAction:(id)sender
{
    if (_HomeCellBlock)
    {
        _HomeCellBlock(self,sender);
    }
}
- (void)drawRect:(CGRect)rect {//重绘frame.image.label
    self.imageViewL.frame = CGRectMake((ScreenWidth/3.0 - 50)/2.0, self.imageViewL.frame.origin.y, 50, 50);
    self.imageViewM.frame = CGRectMake((ScreenWidth - 50)/2.0, self.imageViewM.frame.origin.y, 50, 50);
    self.imageViewR.frame = CGRectMake((ScreenWidth/3.0 - 50)/2.0 + ScreenWidth/3.0 * 2, self.imageViewR.frame.origin.y, 50, 50);
    
    self.labelL.frame = CGRectMake(0, self.labelL.frame.origin.y, ScreenWidth/3.0, self.labelL.frame.size.height);
    self.labelM.frame = CGRectMake(ScreenWidth/3.0, self.labelM.frame.origin.y, ScreenWidth/3.0, self.labelM.frame.size.height);
    self.labelR.frame = CGRectMake(ScreenWidth/3.0 * 2, self.labelR.frame.origin.y, ScreenWidth/3.0, self.labelR.frame.size.height);
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
